FROM java:8
ADD data_collect-0.0.1-SNAPSHOT.jar data_collect.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","data_collect.jar"]


FROM java:8
VOLUME /tmp
ADD data_collect-0.0.1-SNAPSHOT.jar data_collect.jar
RUN sh -c 'touch /data_collect.jar'
EXPOSE 8080
ENTRYPOINT ["java","-jar","data_collect.jar"]